package com.youlai.boot.factory.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * 试用申请单审核表单对象
 *
 * @author youlaitech
 * @since 2025-11-11
 */
@Getter
@Setter
@Schema(description = "试用申请单审核表单对象")
public class TrialApplicationsAuditForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID", required = true)
    @NotNull(message = "申请单ID不能为空")
    private Long id;

    @Schema(description = "申请状态: 1-待审核, 2-审核通过, 3-审核不通过", required = true)
    @NotNull(message = "审核状态不能为空")
    private Integer applicationStatus;

    @Schema(description = "审核时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime reviewTime;

    @Schema(description = "审核备注")
    @Size(max=65535, message="审核备注长度不能超过65535个字符")
    private String reviewRemark;
}

